package xyz.luhui1hao.springboottest.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.luhui1hao.springboottest.domain.User;
import xyz.luhui1hao.springboottest.mapper.UserMapper;
import xyz.luhui1hao.springboottest.service.UserService;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public List<User> findUserByName(String name) {
        return userMapper.findUserByName(name);
    }
}
